<script type="text/javascript" src="../registry/custom/endpoint/myjss.js"></script>

<script type="text/javascript">
    alert("from jsp");

    function test(){

        alert("from test method");
    }

</script>

<p>TEXST</p>
<input type="button" onclick="test();"/>